package org.example.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class TestController {


    @GetMapping("/test")
    public String test() {
        return "test";
    }



    @GetMapping("/test2")
    @ResponseBody
    public String test2() {
        return "test2";
    }

}
